package com.dragon.design.pattern.creational.simplefactory;

/**
 * @author dragon
 * @version V1.0.0-RELEASE
 * @date 2019/5/15 15:25
 */
public class Test {

    public static void main(String[] args) throws InstantiationException, IllegalAccessException {
        Video javaVideo = VideoFactory.getVideo(JavaVideo.class);
        javaVideo.produce();

        Video pythonVideo = (Video) VideoFactory.getVideo(PythonVideo.class);
        pythonVideo.produce();
    }
}
